<%-- 新鲜资讯产品Portal显示列表 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri= "http://java.sun.com/jsp/jstl/core" prefix= "c" %>
<%@taglib uri= "/WEB-INF/tld/fn.tld" prefix= "fn" %>

<table style="width: 100%; padding-left: 10px; padding-top: 10px; ">
  <c:if test="${not empty requestScope.newInfoLst}">
  <c:forEach items="${requestScope.newInfoLst }" var="newInfoItem" varStatus="status">
  <tr>
    <td>
      <a href="./newinfoDetail.do?id=${newInfoItem.id }" title="${newInfoItem.title }">
      <c:choose>
        <c:when test="${fn:length(newInfoItem.title) > 14}">
          <c:out value="${fn:substring(newInfoItem.title, 0, 14)}..." /> 
        </c:when> 
        <c:otherwise>
          <c:out value="${newInfoItem.title}" />
        </c:otherwise>
      </c:choose>
      </a>
    </td>
  </tr>
  </c:forEach>
  </c:if>
</table>